import 'package:flutter_ncsjqz_getx/generated/json/base/json_convert_content.dart';
import 'package:flutter_ncsjqz_getx/model/my_relese_entity.dart';

MyReleseEntity $MyReleseEntityFromJson(Map<String, dynamic> json) {
	final MyReleseEntity myReleseEntity = MyReleseEntity();
	final String? msg = jsonConvert.convert<String>(json['msg']);
	if (msg != null) {
		myReleseEntity.msg = msg;
	}
	final int? code = jsonConvert.convert<int>(json['code']);
	if (code != null) {
		myReleseEntity.code = code;
	}
	final MyReleseData? data = jsonConvert.convert<MyReleseData>(json['data']);
	if (data != null) {
		myReleseEntity.data = data;
	}
	return myReleseEntity;
}

Map<String, dynamic> $MyReleseEntityToJson(MyReleseEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['msg'] = entity.msg;
	data['code'] = entity.code;
	data['data'] = entity.data?.toJson();
	return data;
}

MyReleseData $MyReleseDataFromJson(Map<String, dynamic> json) {
	final MyReleseData myReleseData = MyReleseData();
	final int? totalCount = jsonConvert.convert<int>(json['totalCount']);
	if (totalCount != null) {
		myReleseData.totalCount = totalCount;
	}
	final int? pageSize = jsonConvert.convert<int>(json['pageSize']);
	if (pageSize != null) {
		myReleseData.pageSize = pageSize;
	}
	final int? totalPage = jsonConvert.convert<int>(json['totalPage']);
	if (totalPage != null) {
		myReleseData.totalPage = totalPage;
	}
	final int? currPage = jsonConvert.convert<int>(json['currPage']);
	if (currPage != null) {
		myReleseData.currPage = currPage;
	}
	final List<MyReleseDataList>? xList = jsonConvert.convertListNotNull<MyReleseDataList>(json['list']);
	if (xList != null) {
		myReleseData.xList = xList;
	}
	return myReleseData;
}

Map<String, dynamic> $MyReleseDataToJson(MyReleseData entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['totalCount'] = entity.totalCount;
	data['pageSize'] = entity.pageSize;
	data['totalPage'] = entity.totalPage;
	data['currPage'] = entity.currPage;
	data['list'] =  entity.xList?.map((v) => v.toJson()).toList();
	return data;
}

MyReleseDataList $MyReleseDataListFromJson(Map<String, dynamic> json) {
	final MyReleseDataList myReleseDataList = MyReleseDataList();
	final String? userPic = jsonConvert.convert<String>(json['userPic']);
	if (userPic != null) {
		myReleseDataList.userPic = userPic;
	}
	final int? postId = jsonConvert.convert<int>(json['postId']);
	if (postId != null) {
		myReleseDataList.postId = postId;
	}
	final dynamic? postTitle = jsonConvert.convert<dynamic>(json['postTitle']);
	if (postTitle != null) {
		myReleseDataList.postTitle = postTitle;
	}
	final dynamic? postContent = jsonConvert.convert<dynamic>(json['postContent']);
	if (postContent != null) {
		myReleseDataList.postContent = postContent;
	}
	final int? seeType = jsonConvert.convert<int>(json['seeType']);
	if (seeType != null) {
		myReleseDataList.seeType = seeType;
	}
	final dynamic? postTypeName = jsonConvert.convert<dynamic>(json['postTypeName']);
	if (postTypeName != null) {
		myReleseDataList.postTypeName = postTypeName;
	}
	final dynamic? postType = jsonConvert.convert<dynamic>(json['postType']);
	if (postType != null) {
		myReleseDataList.postType = postType;
	}
	final String? releaseTime = jsonConvert.convert<String>(json['releaseTime']);
	if (releaseTime != null) {
		myReleseDataList.releaseTime = releaseTime;
	}
	final int? userId = jsonConvert.convert<int>(json['userId']);
	if (userId != null) {
		myReleseDataList.userId = userId;
	}
	final String? nikeName = jsonConvert.convert<String>(json['nikeName']);
	if (nikeName != null) {
		myReleseDataList.nikeName = nikeName;
	}
	final List<String>? postUrls = jsonConvert.convertListNotNull<String>(json['postUrls']);
	if (postUrls != null) {
		myReleseDataList.postUrls = postUrls;
	}
	final List<dynamic>? comments = jsonConvert.convertListNotNull<dynamic>(json['comments']);
	if (comments != null) {
		myReleseDataList.comments = comments;
	}
	final int? praiseCount = jsonConvert.convert<int>(json['praiseCount']);
	if (praiseCount != null) {
		myReleseDataList.praiseCount = praiseCount;
	}
	final bool? isAttention = jsonConvert.convert<bool>(json['isAttention']);
	if (isAttention != null) {
		myReleseDataList.isAttention = isAttention;
	}
	final bool? isPraise = jsonConvert.convert<bool>(json['isPraise']);
	if (isPraise != null) {
		myReleseDataList.isPraise = isPraise;
	}
	final dynamic? shopStatus = jsonConvert.convert<dynamic>(json['shopStatus']);
	if (shopStatus != null) {
		myReleseDataList.shopStatus = shopStatus;
	}
	final int? postStatus = jsonConvert.convert<int>(json['postStatus']);
	if (postStatus != null) {
		myReleseDataList.postStatus = postStatus;
	}
	return myReleseDataList;
}

Map<String, dynamic> $MyReleseDataListToJson(MyReleseDataList entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['userPic'] = entity.userPic;
	data['postId'] = entity.postId;
	data['postTitle'] = entity.postTitle;
	data['postContent'] = entity.postContent;
	data['seeType'] = entity.seeType;
	data['postTypeName'] = entity.postTypeName;
	data['postType'] = entity.postType;
	data['releaseTime'] = entity.releaseTime;
	data['userId'] = entity.userId;
	data['nikeName'] = entity.nikeName;
	data['postUrls'] =  entity.postUrls;
	data['comments'] =  entity.comments;
	data['praiseCount'] = entity.praiseCount;
	data['isAttention'] = entity.isAttention;
	data['isPraise'] = entity.isPraise;
	data['shopStatus'] = entity.shopStatus;
	data['postStatus'] = entity.postStatus;
	return data;
}